# 全局变量和局部变量

x = 10


def theX():
    x = 20
    print(x)


theX()    # 20
print(x)   # 10

